package com.youtui.manager.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/page")
public class PageController {

	@RequestMapping("/{directory}/{fileName}.do")
	public String jump(@PathVariable String directory, @PathVariable String fileName, ModelMap model) {

		return directory + "/" + fileName;
	}

	@RequestMapping("/{fileName}.do")
	public String jump(@PathVariable String fileName, ModelMap model) {

		return fileName;
	}

}
